<?php

namespace app\model;

use app\model\BaseModel;

/**
 * UserLog模型
 */
class UserLoginLog extends BaseModel{
    protected function getOptions(): array{
        return [];
    }

    /**
     * 一对一 User-UserLoginLog
     */
    public function logs(){
        return $this->hasOne(User::class,'user_id','id');
    }
}